import{_ as t}from"./_tslib-BJsnFhs2.mjs";import{SkinnedMeshRenderer as o,_decorator as i,Component as e,Mat4 as n}from"cc";import s from"./ModelModifyConfigManager.mjs";const{ccclass:r,property:l}=i;let p=class extends e{initialize(t){let o=this.node._mat;const i=n.copy(new n,o),e=new Proxy(i,{set:(t,e,n,s)=>(i[e]==n||(o[e]=n),!0)});o.multiply(t),Object.defineProperties(this.node,{_mat:{get:()=>(n.multiply(i,o,t),e),set:t=>{o=t}}})}};p=t([r("SkinnedTransfomModify")],p),o.prototype.__preload=function(){const t=s.getModifyTransform(this.skeleton.uuid);if(null!=t){this.skinningRoot.addComponent(p).initialize(t)}};export{p as SkinnedTransformModify};
